<h1>New Store</h1>

<% form_for :store, :url => {:action => :create }, :html => {:multipart => :true, :id => "a_form"} do |f| %>
    <h2>Name</h2>
    <%= f.text_field :name, :class => "required" %>
    <h2>Address</h2>
    <%= f.text_field :address, :class => "required" %>
    <h2>URL</h2>
    <%= f.text_field :url, :class => "required validate-url" %>
    <h2>Description</h2>
    <%= f.text_area :description, :class => "required" %>
    <h2>Image</h2>
    <input type="file" size="30" name="product_shot[uploaded_data]" id="product_shot_uploaded_data" class="required" />
    <br /><br />
    <%= submit_tag :save %>
<% end %>

<script type="text/javascript">
     new Validation('a_form'); // OR new Validation(document.forms[0]);
</script>